<?php


class Application_Form_Groupmember extends Zend_Form
{
	protected $_user = array();
	
	public function getUser() {
		return $this->_user;
	}
	
	public function setUser($user){
		$this->_user = $user;
	}
	
	public function init()
	    {
	        $this->setName("groupmember");
	        $this->setMethod('post');
	             
        $friend = new Zend_Form_Element_Select('userid');
        $friend ->setLabel('Freund:')
        	->addMultiOptions( $this->_user);
	
		// create submit button
		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setLabel('Submit')
		->setOptions(array('class' => 'submit'));
		
		
        // attach elements to form
        $this->addElement($friend)
        		->addElement($submit);    
	    }

	


}

